package com.junzerg.tooltip.constant;

/**
 * @author pengjz <br>
 * @version 1.0 <br>
 * @description Constant <br>
 * @date 2022/4/6 22:30 <br>
 */
public class Constant {
    /**
     * status
     */
    public static final String STATUS = "status";
    public static final String OK = "OK";

    public static final String ADDRESS_JOIN = " | ";

    /**
     * message
     */
    public static final String MSG = "msg";

    /**
     * data total
     * 数据总数
     */
    public static final String COUNT = "count";

    /**
     * page size
     * 每页数据条数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * current page no
     * 当前页码
     */
    public static final String PAGE_NUMBER = "pageNo";

    public static final class AMAP {
        public static final String POI_URL_TEXT = "https://restapi.amap.com/v3/place/text";
        public static final String POI_URL_AROUND = "https://restapi.amap.com/v3/place/around";
        public static final String POI_URL_POLYGON = "https://restapi.amap.com/v3/place/polygon";
        public static final String AUTH_KEY = "4153aa604937fa396a80f7f356c45628";
        public static final String RESPONSE_STATUS_OK = "1";
        public static final String RESPONSE_INFO_OK = "OK";
        public static final String LOCATION_SPLITTER = ",";
        public static final String REDIS_COUNT_KEY = "BASE:POI:AMAP:COUNT";
        /**
         * 每天前多少访问量去高德刷新数据
         */
        public static final int DAY_COUNT = 200000;

        /**
         * 高德每天允许的访问次数
         */
        public static final int MAX_COUNT = 299900;
    }

    public static final class AMAP_ERROR {
        public static final String REQUEST_FAIL = "高德poi请求失败!";
        public static final String RESPONSE_PARSE_FAIL = "高德poi响应解析失败";
    }
}
